import { _decorator, Camera, Component, find, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('CameraManager')
export class CameraManager extends Component {
    private static _instance:CameraManager;

    static get instance(): CameraManager{
        if(this._instance == null){
            this._instance = new CameraManager();
            this._instance.camera = find('Main Camera').getComponent(Camera)
        }

        return this._instance
    }

    public camera:Camera = null!;
}


